<?php

//UMA new
namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class InputOption extends JsonResource
{
    /**
     * 把 model 转换成 array.
     * model 変換 array
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'option_name' => $this->option_name,
            'option_value' => $this->option,
        ];
    }
}
